package cn.tedu.tmall.admin.mall.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * 延迟定时同步商城类别数据
 * @Author: goodman
 * @Date: 2024/3/1 14:31
 */
@Slf4j
@Configuration
@EnableScheduling
public class SyncMallCategoryTask {

    //晚上业务低峰的是比如 凌晨3点 执行一次数据同步
    //todo cron 自己搜 chat
    @Scheduled(cron = "0/5 * * * * *")
    private void syncCategory(){
        //log.info("同步商品类别数据执行时间:{}",System.currentTimeMillis());
    }

}
